<?php

use think\facade\Route;

Route::group(function () {
    // 心动匹配用户列表
    Route::get('getUserList', 'v1.User/getUserList')
        ->setOption('real_name', '获取心动匹配用户列表');

    // 获取用户信息
    Route::get('getUserInfo', 'v1.User/getUserInfo')
        ->setOption('real_name', '获取用户信息');

    // 实名认证
    Route::post('realNameAuth', 'v1.User/realNameAuth')
        ->setOption('real_name', '用户实名认证');

    // 保存个人信息
    Route::post('saveUserInfo', 'v1.User/saveUserInfo')
        ->setOption('real_name', '保存用户信息');

    // 关注用户|取消关注
    Route::post('followUser', 'v1.User/followUser')
        ->setOption('real_name', '关注|取消关注');

    // 获取关注列表
    Route::get('getFollowingList', 'v1.User/getFollowingList')
        ->setOption('real_name', '获取关注列表');

    // 获取粉丝列表
    Route::get('getFollowersList', 'v1.User/getFollowersList')
        ->setOption('real_name', '获取关注列表');

    // 获取用户动态列表
    Route::get('getUserPostList', 'v1.User/getUserPostList')
        ->setOption('real_name', '获取用户动态列表');

    // 获取朋友列表
    Route::get('getFriendList', 'v1.User/getFriendList')
        ->setOption('real_name', '获取朋友列表');

    // 获取用户相互状态
    Route::get('getMutualState', 'v1.User/getMutualState')
        ->setOption('real_name', '获取用户相互状态');

    // 获取用户背包列表
    Route::get('getUserAssetList', 'v1.User/getUserAssetList')
        ->setOption('real_name', '获取用户背包列表');

    // 获取用户碎片兑换记录列表
    Route::get('getFragmentExchangeLogList', 'v1.User/getFragmentExchangeLogList')
        ->setOption('real_name', '');

    // 获取用户收货地址列表
    Route::get('getUserAddressList', 'v1.UserAddress/getUserAddressList')
        ->setOption('real_name', '获取用户收货地址列表');

    // 新增用户收货地址
    Route::post('createUserAddress', 'v1.UserAddress/createUserAddress')
        ->setOption('real_name', '新增用户收货地址');

    // 修改用户收货地址
    Route::put('updateUserAddress/:id', 'v1.UserAddress/updateUserAddress')
        ->setOption('real_name', '修改用户收货地址');

    // 获取用户收货地址详情
    Route::get('getUserAddressInfo/:id', 'v1.UserAddress/getUserAddressInfo')
        ->setOption('real_name', '获取用户收货地址详情');

    // 设置默认收货地址
    Route::put('setDefaultUserAddress/:id', 'v1.UserAddress/setDefaultUserAddress')
        ->setOption('real_name', '设置默认收货地址');

    // 删除用户收货地址
    Route::delete('deleteUserAddress/:id', 'v1.UserAddress/deleteUserAddress')
        ->setOption('real_name', '删除用户收货地址');
})->middleware(\app\api\middleware\middleware\JwtAuth::class);
